//
//  Person.h
//  OC03_属性_点语法
//
//  Created by dllo on 16/2/26.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Person : NSObject
//属性

@property (nonatomic, retain) NSString *name;//注意:属性名前没有_符号
@property (nonatomic, retain) NSString *sex;
@property (nonatomic, assign) NSInteger age;
//@property NSString *name;//注意,属性前面没有 _.
//@property NSString *sex;
//@property NSInteger age;
//


//方法
- (instancetype)initWithName :(NSString *)name sex:(NSString *)sex age:(NSInteger)age;

+ (instancetype)person;
+ (instancetype)personWithName :(NSString *)name sex:(NSString *)sex age:(NSInteger)age;
@end
